import React from "react";
import "./News.css";

import { NavLink, Outlet } from "react-router-dom";

export default function News() {
  return (
    <div className="news">
      <span>
        <NavLink to="/news/guonei">国内新闻</NavLink>
      </span>{" "}
      &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
      <span>
        <NavLink to="/news/junshi">军事新闻</NavLink>
      </span>
      {/* 子组件占位 */}
      <Outlet></Outlet>
    </div>
  );
}
